package com.dkm.ec.product.persistence.entity;
import org.apache.commons.lang.builder.ToStringBuilder;

import com.dkm.base.api.annotion.IField;
import com.dkm.base.api.annotion.ITable;
import com.dkm.base.db.persistence.entity.AbstractPo;

/**
 * 对象功能:关联产品推荐 Tbl对象
 * 开发公司:SKG.COM
 * 开发人员:HWN
 * 创建时间:2015-03-25 12:37:34
 */
 @ITable(name="prodRec",code="skg_prod_rec")
public class ProdRecTbl extends AbstractPo<String>{
	@IField(name="id",column="id_")
	protected String  id; 		/*推荐 ID*/
	@IField(name="baseId",column="base_id_")
	protected String  baseId; 		/*基于对象实体ID*/
	@IField(name="recId",column="rec_id_")
	protected String  recId; 		/*推荐产品 ID*/
	@IField(name="userId",column="user_id_")
	protected String  userId; 		/*用户 ID*/
	@IField(name="sort",column="sort_")
	protected Integer  sort; 		/*排序号*/
	@IField(name="typeKey",column="type_key_")
	protected String  typeKey; 		/*推荐类型业务键*/
	@IField(name="srcType",column="src_type_")
	protected String  srcType; 		/*来源类型。manual=人工添加；auto=算法搜索获得*/
	@IField(name="percent",column="percent_")
	protected Integer percent; 		/*百分比（人工设置）*/
	@IField(name="createBy",column="create_by_")
	protected String  createBy; 		/*创建者*/
	@IField(name="createTime",column="create_time_")
	protected java.util.Date  createTime; 		/*创建时间*/
	
	public void setId(String id) 
	{
		this.id = id;
	}
	/**
	 * 返回 推荐 ID
	 * @return
	 */
	public String getId() 
	{
		return this.id;
	}
	public void setBaseId(String baseId) 
	{
		this.baseId = baseId;
	}
	/**
	 * 返回 基于对象实体ID
	 * @return
	 */
	public String getBaseId() 
	{
		return this.baseId;
	}
	public void setRecId(String recId) 
	{
		this.recId = recId;
	}
	/**
	 * 返回 推荐产品 ID
	 * @return
	 */
	public String getRecId() 
	{
		return this.recId;
	}
	public void setUserId(String userId) 
	{
		this.userId = userId;
	}
	/**
	 * 返回 用户 ID
	 * @return
	 */
	public String getUserId() 
	{
		return this.userId;
	}
	public void setSort(Integer sort) 
	{
		this.sort = sort;
	}
	/**
	 * 返回 排序号
	 * @return
	 */
	public Integer getSort() 
	{
		return this.sort;
	}
	public void setTypeKey(String typeKey) 
	{
		this.typeKey = typeKey;
	}
	/**
	 * 返回 推荐类型业务键
	 * @return
	 */
	public String getTypeKey() 
	{
		return this.typeKey;
	}
	public void setSrcType(String srcType) 
	{
		this.srcType = srcType;
	}
	/**
	 * 返回 来源类型。manual=人工添加；auto=算法搜索获得
	 * @return
	 */
	public String getSrcType() 
	{
		return this.srcType;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}
	/**
	 * 返回 创建者
	 * @return
	 */
	public String getCreateBy() 
	{
		return this.createBy;
	}
	public void setCreateTime(java.util.Date createTime) 
	{
		this.createTime = createTime;
	}
	/**
	 * 返回 创建时间
	 * @return
	 */
	public java.util.Date getCreateTime() 
	{
		return this.createTime;
	}
	/**
	 * percent
	 * @return  the percent
	 * @since   1.0.0
	 */
	
	public Integer getPercent() {
		return percent;
	}
	/**
	 * @param percent the percent to set
	 */
	public void setPercent(Integer percent) {
		this.percent = percent;
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() 
	{
		return new ToStringBuilder(this)
		.append("id", this.id) 
		.append("baseId", this.baseId) 
		.append("recId", this.recId) 
		.append("userId", this.userId) 
		.append("sort", this.sort) 
		.append("typeKey", this.typeKey) 
		.append("srcType", this.srcType) 
		.append("createBy", this.createBy) 
		.append("createTime", this.createTime) 
		.append("percenten",this.percent)
		.toString();
	}
}